import request from '@/utils/request'

export const addOneCouponCate = data => request({
  url: '/addOneCouponCate',
  method: 'put',
  data: data || {}
})

export const updateOneCouponCateById = data => request({
  url: '/updateOneCouponCateById',
  method: 'patch',
  data: data || {}
})

export const getCouponCateList = data => request({
  url: '/getCouponCateList',
  method: 'post',
  data: data || {}
})

// 用户 ---------------------------------
export const addOneCouponUser = data => request({
  url: '/addOneCouponUser',
  method: 'put',
  data: data || {}
})

export const updateOneCouponUserById = data => request({
  url: '/updateOneCouponUserById',
  method: 'patch',
  data: data || {}
})

export const getCouponUserList = data => request({
  url: '/getCouponUserList',
  method: 'post',
  data: data || {}
})
